<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="http://mamsy.ru/" />
<title>if5-work-on-mamsy</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">if5-work-on-mamsy</td></tr>
</thead><tbody>
<tr>
	<td>open</td>
	<td>/</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Undefined index')==false &amp;&amp; selenium.isTextPresent('Notice')==false &amp;&amp; selenium.isTextPresent('Error')==false &amp;&amp; selenium.isTextPresent('Exception')==false &amp;&amp; selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<tr>
	<td>setSpeed</td>
	<td>10</td>
	<td></td>
</tr>
<tr>
	<td>store</td>
	<td>0</td>
	<td>orderCounter</td>
</tr>
<tr>
	<td>while</td>
	<td>${orderCounter} &lt;= 50</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>${orderCounter}</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>${orderCounter}+1</td>
	<td>orderCounter</td>
</tr>
<tr>
	<td>store</td>
	<td>schoolout2@gmail.com</td>
	<td>UserLoginEmail</td>
</tr>
<tr>
	<td>store</td>
	<td>1q2w3e4r5t</td>
	<td>UserLoginPassword</td>
</tr>
<tr>
	<td>store</td>
	<td>39@mailforspam.com</td>
	<td>AdminLoginEmail</td>
</tr>
<tr>
	<td>store</td>
	<td>1q2w3e4r5t</td>
	<td>AdminLoginPassword</td>
</tr>
<tr>
	<td>store</td>
	<td>Примечаний нет.</td>
	<td>annotation</td>
</tr>
<tr>
	<td>store</td>
	<td>test order &lt;sсrірt&gt;alert('xss');&lt;/sсrірt&gt;</td>
	<td>comment</td>
</tr>
<tr>
	<td>store</td>
	<td>Профсоюзная</td>
	<td>street</td>
</tr>
<tr>
	<td>store</td>
	<td>5 корп. 2</td>
	<td>home</td>
</tr>
<tr>
	<td>store</td>
	<td>133 кв. Звонок не работает</td>
	<td>flat</td>
</tr>
<tr>
	<td>store</td>
	<td>347630</td>
	<td>index</td>
</tr>
<tr>
	<td>store</td>
	<td>Александр</td>
	<td>firstname</td>
</tr>
<tr>
	<td>store</td>
	<td>Плюшкин</td>
	<td>lastname</td>
</tr>
<tr>
	<td>store</td>
	<td>347630</td>
	<td>telephone</td>
</tr>
<tr>
	<td>store</td>
	<td>4</td>
	<td>maxGoodsInOrder</td>
</tr>
<tr>
	<td>store</td>
	<td>2</td>
	<td>categoriesNumber</td>
</tr>
<tr>
	<td>store</td>
	<td>1</td>
	<td>randomCategoriesChoose</td>
</tr>
<tr>
	<td>store</td>
	<td>1</td>
	<td>orderCanceled</td>
</tr>
<tr>
	<td>store</td>
	<td>0</td>
	<td>recalculation_counter</td>
</tr>
<tr>
	<td>store</td>
	<td>2</td>
	<td>categoriesNumber</td>
</tr>
<!--Выбор рандомного кол-ва товаров-->
<tr>
	<td>storeEval</td>
	<td>Math.floor(Math.random()*(${maxGoodsInOrder})+1)</td>
	<td>goods_counter</td>
</tr>
<!--Выбор рандомного города-->
<tr>
	<td>storeEval</td>
	<td>['Москва', 'Архангельское (Москва и МО)', 'Сертолово','Сланцы','Смоленск', 'Белые Берега', 'Большое Полпино', 'Дятьково',&nbsp;&nbsp;'Большое Село', 'Искра Октября', 'Рыбинск', 'Радужный','Пено','Тарногский Городок','Тихвин','Кенисберг','Цуриб','Озерск (Челябинская обл.)','Ленинское (Кировская обл.)','Заполярный (Мурманская обл.)','Жирятино']</td>
	<td>city_array</td>
</tr>
<tr>
	<td>storeEval</td>
	<td>storedVars['city_array'].length</td>
	<td>city_array_length</td>
</tr>
<tr>
	<td>storeEval</td>
	<td>Math.floor(Math.random() * (${city_array_length}))</td>
	<td>random_city_index</td>
</tr>
<tr>
	<td>storeEval</td>
	<td>storedVars['city_array'][storedVars['random_city_index']]</td>
	<td>random_city</td>
</tr>
<tr>
	<td>echo</td>
	<td>${random_city}</td>
	<td></td>
</tr>
<!--Сумма цен всех товаров-->
<tr>
	<td>store</td>
	<td>0</td>
	<td>amount</td>
</tr>
<tr>
	<td>echo</td>
	<td>${amount}</td>
	<td></td>
</tr>
<tr>
	<td>store</td>
	<td>0</td>
	<td>goods_quantity_in_header</td>
</tr>
<tr>
	<td>store</td>
	<td>0</td>
	<td>goods_quantity_in_header_after_buy</td>
</tr>
<!--Логин-->
<tr>
	<td>storeEval</td>
	<td>if (selenium.isElementPresent(&quot;id=input-login_mail&quot;)==true){nextMove=&quot;login&quot;} else {nextMove=&quot;exit&quot;}</td>
	<td>loginPage</td>
</tr>
<tr>
	<td>gotolabel</td>
	<td>${loginPage}</td>
	<td></td>
</tr>
<tr>
	<td>label</td>
	<td>exit</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>id=logout</td>
	<td></td>
</tr>
<tr>
	<td>label</td>
	<td>login</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>input-login_mail</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=input-login_mail</td>
	<td>${UserLoginEmail}</td>
</tr>
<tr>
	<td>click</td>
	<td>css=input.button__button</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>id=loginMessages</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>css=#login-pass_view &gt; label.content__form__text__bg</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=input-login_pass</td>
	<td>${UserLoginPassword}</td>
</tr>
<tr>
	<td>click</td>
	<td>css=input.button__button</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=div.all-sale</td>
	<td></td>
</tr>
<tr>
	<td>store</td>
	<td>1</td>
	<td>goods_buy_count</td>
</tr>
<tr>
	<td>storeXpathCount</td>
	<td>//div[@id='content']/div[3]/a</td>
	<td>stock_count</td>
</tr>
<tr>
	<td>label</td>
	<td>startscript</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>logo</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>id=content</td>
	<td></td>
</tr>
<tr>
	<td>waitForVisible</td>
	<td>id=content</td>
	<td></td>
</tr>
<tr>
	<td>waitForPageToLoad</td>
	<td></td>
	<td></td>
</tr>
<!--Выбор распродажи-->
<tr>
	<td>gotoIf</td>
	<td>${randomCategoriesChoose}==1</td>
	<td>randomCategoriesChoose</td>
</tr>
<tr>
	<td>storeEval</td>
	<td>Math.floor(Math.random() * (${stock_count})+1)</td>
	<td>a_categoriesNumber</td>
</tr>
<tr>
	<td>setSpeed</td>
	<td>50</td>
	<td></td>
</tr>
<tr>
	<td>gotolabel</td>
	<td>clickOnSalebox</td>
	<td></td>
</tr>
<tr>
	<td>label</td>
	<td>randomCategoriesChoose</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>${categoriesNumber}</td>
	<td>a_categoriesNumber</td>
</tr>
<tr>
	<td>label</td>
	<td>clickOnSalebox</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>id=all-sale__box${a_categoriesNumber}</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>id=all-sale__box${a_categoriesNumber}</td>
	<td></td>
</tr>
<tr>
	<td>setSpeed</td>
	<td>10</td>
	<td></td>
</tr>
<!--//-->
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Undefined index')==false &amp;&amp; selenium.isTextPresent('Notice')==false &amp;&amp; selenium.isTextPresent('Error')==false &amp;&amp; selenium.isTextPresent('Exception')==false &amp;&amp; selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<!--//-->
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@id='product_listing']/div/p/a/img</td>
	<td></td>
</tr>
<tr>
	<td>storeXpathCount</td>
	<td>//*[@id='product_listing']/div</td>
	<td>goods_count</td>
</tr>
<tr>
	<td>storeEval</td>
	<td>Math.floor(Math.random() * (${goods_count})+1)</td>
	<td>goods_random</td>
</tr>
<!--Выбор товара-->
<tr>
	<td>clickAndWait</td>
	<td>//div[@id='product_listing']/div[${goods_random}]/p/a/img</td>
	<td></td>
</tr>
<!--//-->
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Undefined index')==false &amp;&amp; selenium.isTextPresent('Notice')==false &amp;&amp; selenium.isTextPresent('Error')==false &amp;&amp; selenium.isTextPresent('Exception')==false &amp;&amp; selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<!--//-->
<!--Выбор Размера-->
<tr>
	<td>storeEval</td>
	<td>if (selenium.isElementPresent(&quot;//div[@id='pinfo']/div/div[2]/div/ul/li&quot;)==true){nextStap=&quot;true_goods_size&quot;} else {nextStap=&quot;find_buy_button&quot;}</td>
	<td>nextStap</td>
</tr>
<tr>
	<td>gotolabel</td>
	<td>${nextStap}</td>
	<td></td>
</tr>
<tr>
	<td>label</td>
	<td>true_goods_size</td>
	<td></td>
</tr>
<tr>
	<td>storeXpathCount</td>
	<td>//*[@id='pinfo']/div[1]/div[2]/div[1]/ul/li/label</td>
	<td>size_goods_counter</td>
</tr>
<tr>
	<td>storeEval</td>
	<td>Math.floor(Math.random()*(${size_goods_counter})+1)</td>
	<td>random_size</td>
</tr>
<tr>
	<td>gotoIf</td>
	<td>${size_goods_counter} == 0</td>
	<td>find_buy_button</td>
</tr>
<tr>
	<td>click</td>
	<td>//div[@id='pinfo']/div/div[2]/div/ul/li[${random_size}]/label/input</td>
	<td></td>
</tr>
<tr>
	<td>gotolabel</td>
	<td>find_buy_button</td>
	<td></td>
</tr>
<!--Кнопка Купить есть?-->
<tr>
	<td>label</td>
	<td>find_buy_button</td>
	<td></td>
</tr>
<tr>
	<td>setSpeed</td>
	<td>10</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (selenium.isElementPresent(&quot;id=img_submit&quot;)==true &amp;&amp; selenium.isVisible(&quot;id=img_submit&quot;)==true){nextMove=&quot;buy&quot;} else {nextMove=&quot;startscript&quot;}</td>
	<td>openPage</td>
</tr>
<tr>
	<td>echo</td>
	<td>${openPage}</td>
	<td></td>
</tr>
<tr>
	<td>gotolabel</td>
	<td>${openPage}</td>
	<td></td>
</tr>
<tr>
	<td>label</td>
	<td>buy</td>
	<td></td>
</tr>
<!--Кнопку можно нажать ?-->
<tr>
	<td>storeEditable</td>
	<td>id=img_submit</td>
	<td>buyButtonCanBeClicked</td>
</tr>
<tr>
	<td>waitForPageToLoad</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>assertElementPresent</td>
	<td>css=div.mousetrap</td>
	<td></td>
</tr>
<tr>
	<td>gotoIf</td>
	<td>${buyButtonCanBeClicked} == false</td>
	<td>startscript</td>
</tr>
<!--Обычная или цена мамси ?-->
<tr>
	<td>storeEval</td>
	<td>if (selenium.isElementPresent(&quot;id=price-mamsy-value&quot;)==true){nextMove=&quot;price-mamsy-value&quot;} else if (selenium.isElementPresent(&quot;id=price-value&quot;)==true){nextMove=&quot;price-value&quot;}</td>
	<td>openPage</td>
</tr>
<tr>
	<td>gotolabel</td>
	<td>${openPage}</td>
	<td></td>
</tr>
<tr>
	<td>label</td>
	<td>price-value</td>
	<td></td>
</tr>
<tr>
	<td>storeText</td>
	<td>id=price-value</td>
	<td>price_value</td>
</tr>
<tr>
	<td>echo</td>
	<td>${price_value}</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>${amount}+${price_value}</td>
	<td>amount</td>
</tr>
<tr>
	<td>gotolabel</td>
	<td>label_from_price-value</td>
	<td></td>
</tr>
<tr>
	<td>label</td>
	<td>price-mamsy-value</td>
	<td></td>
</tr>
<tr>
	<td>storeText</td>
	<td>id=price-mamsy-value</td>
	<td>price_mamsy_value</td>
</tr>
<tr>
	<td>echo</td>
	<td>${price_mamsy_value}</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>${amount}+${price_mamsy_value}</td>
	<td>amount</td>
</tr>
<!--Проверка изменения значения кол-во товара в корзине в шапки сайта, после покупки-->
<tr>
	<td>label</td>
	<td>label_from_price-value</td>
	<td></td>
</tr>
<tr>
	<td>storeText</td>
	<td>//*[@id='user-block']/ul[1]/li[3]/a[2]</td>
	<td>goods_quantity_in_header</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>id=img_submit</td>
	<td></td>
</tr>
<!--//-->
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Undefined index')==false &amp;&amp; selenium.isTextPresent('Notice')==false &amp;&amp; selenium.isTextPresent('Error')==false &amp;&amp; selenium.isTextPresent('Exception')==false &amp;&amp; selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<!--//-->
<tr>
	<td>storeText</td>
	<td>//*[@id='user-block']/ul[1]/li[3]/a[2]</td>
	<td>goods_quantity_in_header_after_buy</td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (storedVars['goods_quantity_in_header'] == storedVars['goods_quantity_in_header_after_buy']) {alert(' не сходится кол-во товара до и после добавления в корзину')}</td>
	<td></td>
</tr>
<!---->
<!--Кол-во купленного товара-->
<tr>
	<td>while</td>
	<td>${goods_buy_count} &lt; ${goods_counter}</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>${goods_buy_count}+1</td>
	<td>goods_buy_count</td>
</tr>
<tr>
	<td>gotolabel</td>
	<td>startscript</td>
	<td></td>
</tr>
<tr>
	<td>endWhile</td>
	<td></td>
	<td></td>
</tr>
<!--ИСТОРИЯ ЗАКАЗОВ-->
<!--Сравнение кол-ва товаров в истории и счетчике корзины, в шапке сайта-->
<tr>
	<td>clickAndWait</td>
	<td>link=Моя корзина</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Мой баланс</td>
	<td></td>
</tr>
<!--//-->
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Undefined index')==false &amp;&amp; selenium.isTextPresent('Notice')==false &amp;&amp; selenium.isTextPresent('Error')==false &amp;&amp; selenium.isTextPresent('Exception')==false &amp;&amp; selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<!--//-->
<tr>
	<td>waitForPageToLoad</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>storeText</td>
	<td>//*[@id='user-block']/ul[1]/li[3]/a[2]</td>
	<td>goods_quantity_in_header</td>
</tr>
<tr>
	<td>echo</td>
	<td>${goods_quantity_in_header}</td>
	<td></td>
</tr>
<tr>
	<td>store</td>
	<td>3</td>
	<td>string_counter</td>
</tr>
<tr>
	<td>store</td>
	<td>0</td>
	<td>amount_quantity_string</td>
</tr>
<tr>
	<td>storeXpathCount</td>
	<td>//*[@id='content']/table[1]/tbody/tr</td>
	<td>common_quantity_string_in_basket</td>
</tr>
<tr>
	<td>echo</td>
	<td>${common_quantity_string_in_basket}</td>
	<td></td>
</tr>
<tr>
	<td>while</td>
	<td>${common_quantity_string_in_basket}&gt;${string_counter}</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>${string_counter}+1</td>
	<td>string_counter</td>
</tr>
<tr>
	<td>echo</td>
	<td>${string_counter}</td>
	<td></td>
</tr>
<tr>
	<td>storeText</td>
	<td>//*[@id='content']/table[1]/tbody/tr[${string_counter}]/td[5]/strong</td>
	<td>current_quantity_string</td>
</tr>
<tr>
	<td>echo</td>
	<td>${current_quantity_string}</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>${amount_quantity_string}+${current_quantity_string}</td>
	<td>amount_quantity_string</td>
</tr>
<tr>
	<td>echo</td>
	<td>${amount_quantity_string}</td>
	<td></td>
</tr>
<tr>
	<td>endWhile</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (storedVars['amount_quantity_string'] != storedVars['goods_quantity_in_header']) {alert('кол-во товаров в истории заказов и счетчике шапки корзины - не сходится')} else {}</td>
	<td></td>
</tr>
<!---->
<!--Бонусы / безнал-->
<tr>
	<td>clickAndWait</td>
	<td>link=Мой баланс</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Моя корзина</td>
	<td></td>
</tr>
<tr>
	<td>waitForPageToLoad</td>
	<td></td>
	<td></td>
</tr>
<!--Мой баланс -->
<tr>
	<td>storeText</td>
	<td>//*[@id='content']/div[5]</td>
	<td>f</td>
</tr>
<tr>
	<td>storeEval</td>
	<td>storedVars['f'].replace(/\D+/g,&quot;&quot;)</td>
	<td>customers_noncash</td>
</tr>
<!--Мои бонусы-->
<tr>
	<td>storeText</td>
	<td>//*[@id='content']/div[6]</td>
	<td>f</td>
</tr>
<tr>
	<td>storeEval</td>
	<td>storedVars['f'].replace(/\D+/g,&quot;&quot;)</td>
	<td>customers_credits</td>
</tr>
<!--Кнопка купить, в корзине-->
<tr>
	<td>clickAndWait</td>
	<td>link=Моя корзина</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=a.default_button</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=a.default_button</td>
	<td></td>
</tr>
<!---->
<!--CHECKOUT-->
<!--CHECKOUT-->
<!---->
<!---->
<tr>
	<td>clickAndWait</td>
	<td>css=a.default_button</td>
	<td></td>
</tr>
<!---->
<!--Заполняем поля-->
<tr>
	<td>waitForElementPresent</td>
	<td>css=i.payment-box__i-cash</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>id=comments</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=input.default_button</td>
	<td></td>
</tr>
<!--//-->
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Undefined index')==false &amp;&amp; selenium.isTextPresent('Notice')==false &amp;&amp; selenium.isTextPresent('Error')==false &amp;&amp; selenium.isTextPresent('Exception')==false &amp;&amp; selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<!--//-->
<tr>
	<td>type</td>
	<td>id=customers_firstname</td>
	<td>${firstname}</td>
</tr>
<tr>
	<td>type</td>
	<td>id=customers_lastname</td>
	<td>${lastname}</td>
</tr>
<tr>
	<td>type</td>
	<td>id=customers_telephone</td>
	<td>${telephone}</td>
</tr>
<tr>
	<td>type</td>
	<td>id=comments</td>
	<td>${comment}</td>
</tr>
<tr>
	<td>setSpeed</td>
	<td>50</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=entry_city</td>
	<td></td>
</tr>
<!--//-->
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Undefined index')==false &amp;&amp; selenium.isTextPresent('Notice')==false &amp;&amp; selenium.isTextPresent('Error')==false &amp;&amp; selenium.isTextPresent('Exception')==false &amp;&amp; selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<!--//-->
<tr>
	<td>typeKeys</td>
	<td>id=entry_city</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=entry_city</td>
	<td>1</td>
</tr>
<tr>
	<td>typeKeys</td>
	<td>id=entry_city</td>
	<td>1</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=input.default_button</td>
	<td></td>
</tr>
<tr>
	<td>waitForVisible</td>
	<td>css=input.default_button</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>css=input.default_button</td>
	<td></td>
</tr>
<!--//-->
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Undefined index')==false &amp;&amp; selenium.isTextPresent('Notice')==false &amp;&amp; selenium.isTextPresent('Error')==false &amp;&amp; selenium.isTextPresent('Exception')==false &amp;&amp; selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<!--//-->
<tr>
	<td>type</td>
	<td>id=entry_city</td>
	<td></td>
</tr>
<tr>
	<td>typeKeys</td>
	<td>id=entry_city</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=entry_city</td>
	<td>${random_city}</td>
</tr>
<tr>
	<td>typeKeys</td>
	<td>id=entry_city</td>
	<td>${random_city}</td>
</tr>
<!--//-->
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Undefined index')==false &amp;&amp; selenium.isTextPresent('Notice')==false &amp;&amp; selenium.isTextPresent('Error')==false &amp;&amp; selenium.isTextPresent('Exception')==false &amp;&amp; selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<!--//-->
<tr>
	<td>waitForElementPresent</td>
	<td>css=i.payment-box__i-cash</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//*[@id='content']/form/div[2]/table[2]/tbody/tr/td[2]/span/label</td>
	<td></td>
</tr>
<tr>
	<td>waitForPageToLoad</td>
	<td></td>
	<td></td>
</tr>
<!---->
<!--DELIVERY TYPE-->
<!---->
<!--Определение типа доставки:-->
<!--Два варианта - и почта и курьер-->
<tr>
	<td>setSpeed</td>
	<td>100</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (selenium.isVisible(&quot;id=courier&quot;)==true &amp;&amp; selenium.isVisible(&quot;id=post&quot;)==true) {nextMove=&quot;random_delivery_choice&quot;} else {nextMove=&quot;only_one_type_of_delivery&quot;}</td>
	<td>openPage</td>
</tr>
<tr>
	<td>echo</td>
	<td>${openPage}</td>
	<td></td>
</tr>
<tr>
	<td>gotolabel</td>
	<td>${openPage}</td>
	<td></td>
</tr>
<tr>
	<td>label</td>
	<td>random_delivery_choice</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>Math.floor(Math.random()*(2))</td>
	<td>trigger</td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (storedVars['trigger'] == 1 ) {nextMove=&quot;courier_delivery&quot;} else {nextMove=&quot;post_delivery&quot;}</td>
	<td>openPage</td>
</tr>
<tr>
	<td>echo</td>
	<td>${openPage}</td>
	<td></td>
</tr>
<tr>
	<td>gotolabel</td>
	<td>${openPage}</td>
	<td></td>
</tr>
<!--Один вариант доставки-->
<tr>
	<td>label</td>
	<td>only_one_type_of_delivery</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (selenium.isVisible(&quot;id=courier&quot;)==true){nextMove=&quot;courier_delivery&quot;} else {nextMove=&quot;post_delivery&quot;}</td>
	<td>openPage</td>
</tr>
<tr>
	<td>gotolabel</td>
	<td>${openPage}</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>${openPage}</td>
	<td></td>
</tr>
<tr>
	<td>label</td>
	<td>post_delivery</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=post</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=post</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=post</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>id=post</td>
	<td>Почтой</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>id=entry_postcode</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>id=entry_exact_street_address</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>id=entry_home_address</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>id=entry_flat_address</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=entry_exact_street_address</td>
	<td>${street}</td>
</tr>
<tr>
	<td>type</td>
	<td>id=entry_home_address</td>
	<td>${home}</td>
</tr>
<tr>
	<td>type</td>
	<td>id=entry_flat_address</td>
	<td>${flat}</td>
</tr>
<tr>
	<td>type</td>
	<td>id=entry_postcode</td>
	<td>${index}</td>
</tr>
<tr>
	<td>type</td>
	<td>id=entry_misc</td>
	<td>${annotation}</td>
</tr>
<tr>
	<td>gotolabel</td>
	<td>end_of_delivery_choice</td>
	<td></td>
</tr>
<tr>
	<td>label</td>
	<td>courier_delivery</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=courier</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=courier</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=courier</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>id=courier</td>
	<td>Курьером</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>id=entry_exact_street_address</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>id=entry_home_address</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>id=entry_flat_address</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=entry_exact_street_address</td>
	<td>${street}</td>
</tr>
<tr>
	<td>type</td>
	<td>id=entry_home_address</td>
	<td>${home}</td>
</tr>
<tr>
	<td>type</td>
	<td>id=entry_flat_address</td>
	<td>${flat}</td>
</tr>
<tr>
	<td>type</td>
	<td>id=entry_misc</td>
	<td>${annotation}</td>
</tr>
<tr>
	<td>label</td>
	<td>end_of_delivery_choice</td>
	<td></td>
</tr>
<tr>
	<td>setSpeed</td>
	<td>50</td>
	<td></td>
</tr>
<!---->
<!--Заносим в переменные цены-->
<tr>
	<td>storeText</td>
	<td>id=basket_sum</td>
	<td>basket_sum</td>
</tr>
<tr>
	<td>storeText</td>
	<td>id=delivery_sum</td>
	<td>delivery_sum</td>
</tr>
<tr>
	<td>storeText</td>
	<td>id=payable_sum</td>
	<td>payable_sum</td>
</tr>
<tr>
	<td>storeText</td>
	<td>//*[@id='user-block']/ul[1]/li[2]/a[2]</td>
	<td>myBalanceButtoInHeader</td>
</tr>
<tr>
	<td>storeText</td>
	<td>id=service</td>
	<td>service</td>
</tr>
<tr>
	<td>echo</td>
	<td>basket_sum: ${basket_sum} delivery_sum:${delivery_sum} payable_sum:${payable_sum} myBalanceButtoInHeader:${myBalanceButtoInHeader}</td>
	<td></td>
</tr>
<!---->
<!--Проверка суммы скидка + безнал-->
<tr>
	<td>storeEval</td>
	<td>${customers_noncash} + ${customers_credits}</td>
	<td>customers_noncash_PLUS_customers_credits</td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (storedVars['customers_noncash_PLUS_customers_credits'] != storedVars['myBalanceButtoInHeader']) {alert('Сумма: безнал + скидка, в шапке, не сходится - ${customers_noncash_PLUS_customers_credits} != ${myBalanceButtoInHeader}')} else {}</td>
	<td></td>
</tr>
<!---->
<!--Проверка суммы цен всех товаров и цифры в чеке-->
<tr>
	<td>storeEval</td>
	<td>if (storedVars['basket_sum'] != storedVars['amount']) {alert('цена товаров не сходится - ${basket_sum} != ${amount}')} else {}</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>basket_sum: ${basket_sum}, amount: ${amount}</td>
	<td></td>
</tr>
<!--Есть бонусы-->
<tr>
	<td>storeEval</td>
	<td>if (${customers_credits}!=0){nextMove=&quot;true_bonus&quot;} else {nextMove=&quot;false_bonus&quot;}</td>
	<td>loginPage</td>
</tr>
<tr>
	<td>gotolabel</td>
	<td>${loginPage}</td>
	<td></td>
</tr>
<tr>
	<td>label</td>
	<td>true_bonus</td>
	<td></td>
</tr>
<!--считаем % бонусов-->
<tr>
	<td>storeText</td>
	<td>id=discount_sum</td>
	<td>discount_sum</td>
</tr>
<tr>
	<td>storeEval</td>
	<td>Math.floor(((${basket_sum}+ ${delivery_sum} + ${service}) / 100) * 25)</td>
	<td>availableForCahrgeBonuses</td>
</tr>
<!--Процент бонусов. => 25% ?-->
<tr>
	<td>gotoIf</td>
	<td>${customers_credits} &gt;= ${availableForCahrgeBonuses}</td>
	<td>availableForCahrgeBonuses_more_than_discount</td>
</tr>
<tr>
	<td>echo</td>
	<td>basket_sum: ${basket_sum}, delivery_sum: ${delivery_sum}, service: ${service}, availableForCahrgeBonuses: ${availableForCahrgeBonuses}, discount_sum: ${discount_sum}, myBalanceButtoInHeader: ${customers_credits}, basket_sum_p_service_delivery_sum_minus_discount_sum: ${basket_sum_p_service_delivery_sum_minus_discount_sum}</td>
	<td></td>
</tr>
<!--Бонусы < 25% от заказа-->
<tr>
	<td>storeEval</td>
	<td>if (storedVars['customers_credits'] != storedVars['discount_sum']) {alert('Скидка не сходится - customers_credits: ${customers_credits} != discount_sum: ${discount_sum} ')} else {}</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>(${basket_sum} + ${service} + ${delivery_sum}) - ${customers_credits}</td>
	<td>basket_sum_p_service_delivery_sum_minus_customers_credits</td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (storedVars['payable_sum'] != storedVars['basket_sum_p_service_delivery_sum_minus_customers_credits']) {alert('Сумма к оплате, с учетом скидки, не сходится payable_sum: ${payable_sum} != basket_sum_p_service_delivery_sum_minus_customers_credits: ${basket_sum_p_service_delivery_sum_minus_customers_credits} ')} else {}</td>
	<td></td>
</tr>
<tr>
	<td>gotolabel</td>
	<td>end_checkout_calculation</td>
	<td></td>
</tr>
<!--Бонусы > 25% от заказа-->
<tr>
	<td>label</td>
	<td>availableForCahrgeBonuses_more_than_discount</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>(${basket_sum} + ${service} + ${delivery_sum}) - (${availableForCahrgeBonuses})</td>
	<td>basket_sum_p_service_delivery_sum_minus_availableForCahrgeBonuses</td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (storedVars['payable_sum'] != storedVars['basket_sum_p_service_delivery_sum_minus_availableForCahrgeBonuses']) {alert('Сумма к оплате, с учетом скидки, не сходится payable_sum: ${payable_sum} != basket_sum_p_service_delivery_sum_minus_availableForCahrgeBonuses: ${basket_sum_p_service_delivery_sum_minus_availableForCahrgeBonuses} ')} else {}</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (storedVars['availableForCahrgeBonuses'] != storedVars['discount_sum']) {alert('Скидка не сходится -&nbsp;&nbsp;availableForCahrgeBonuses: ${availableForCahrgeBonuses} != discount_sum: ${discount_sum} ')} else {}</td>
	<td></td>
</tr>
<tr>
	<td>gotolabel</td>
	<td>end_checkout_calculation</td>
	<td></td>
</tr>
<!--Бонусов нет-->
<tr>
	<td>label</td>
	<td>false_bonus</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>${basket_sum} + ${service} + ${delivery_sum}</td>
	<td>basket_sum_p_service_p_delivery_sum</td>
</tr>
<tr>
	<td>echo</td>
	<td>basket_sum_p_service_p_delivery_sum:${basket_sum_p_service_p_delivery_sum}</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (storedVars['payable_sum'] != storedVars['basket_sum_p_service_p_delivery_sum']) {alert('payable_sum false')} else {}</td>
	<td></td>
</tr>
<!---->
<!--Подвердить заказ-->
<!--Подвердить заказ-->
<!--Подвердить заказ-->
<tr>
	<td>label</td>
	<td>end_checkout_calculation</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=input.default_button</td>
	<td></td>
</tr>
<tr>
	<td>waitForVisible</td>
	<td>css=input.default_button</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>css=input.default_button</td>
	<td></td>
</tr>
<!--//-->
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Undefined index')==false &amp;&amp; selenium.isTextPresent('Notice')==false &amp;&amp; selenium.isTextPresent('Error')==false &amp;&amp; selenium.isTextPresent('Exception')==false &amp;&amp; selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<!--//-->
<tr>
	<td>waitForElementPresent</td>
	<td>css=input.default_button</td>
	<td></td>
</tr>
<tr>
	<td>waitForVisible</td>
	<td>css=input.default_button</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>css=input.default_button</td>
	<td></td>
</tr>
<tr>
	<td>waitForPageToLoad</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=div.all-sale</td>
	<td></td>
</tr>
<!--//-->
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Undefined index')==false &amp;&amp; selenium.isTextPresent('Notice')==false &amp;&amp; selenium.isTextPresent('Error')==false &amp;&amp; selenium.isTextPresent('Exception')==false &amp;&amp; selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<!--//-->
<!--Номер заказа-->
<tr>
	<td>clickAndWait</td>
	<td>link=История заказов</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>id=content</td>
	<td></td>
</tr>
<tr>
	<td>waitForText</td>
	<td>css=h1</td>
	<td>Мой аккаунт / история заказов</td>
</tr>
<!--//-->
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Undefined index')==false &amp;&amp; selenium.isTextPresent('Notice')==false &amp;&amp; selenium.isTextPresent('Error')==false &amp;&amp; selenium.isTextPresent('Exception')==false &amp;&amp; selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<!--//-->
<tr>
	<td>storeText</td>
	<td>//html/body/div/div[2]/table/tbody/tr[2]/td</td>
	<td>f</td>
</tr>
<tr>
	<td>storeEval</td>
	<td>storedVars['f'].replace(/\D+/g,&quot;&quot;)</td>
	<td>order_id</td>
</tr>
<tr>
	<td>gotolabel</td>
	<td>End</td>
	<td></td>
</tr>
<!--Конец заказа-->
<tr>
	<td>label</td>
	<td>End</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>id=logout</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=p.content__section</td>
	<td></td>
</tr>
<!--//-->
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Undefined index')==false &amp;&amp; selenium.isTextPresent('Notice')==false &amp;&amp; selenium.isTextPresent('Error')==false &amp;&amp; selenium.isTextPresent('Exception')==false &amp;&amp; selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<!--//-->
<!--Путь в админку-->
<!--Путь в админку-->
<tr>
	<td>gotoIf</td>
	<td>${orderCanceled} == 0</td>
	<td>login</td>
</tr>
<tr>
	<td>type</td>
	<td>id=input-login_mail</td>
	<td>${AdminLoginEmail}</td>
</tr>
<tr>
	<td>click</td>
	<td>css=input.button__button</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>id=loginMessages</td>
	<td></td>
</tr>
<!--//-->
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Undefined index')==false &amp;&amp; selenium.isTextPresent('Notice')==false &amp;&amp; selenium.isTextPresent('Error')==false &amp;&amp; selenium.isTextPresent('Exception')==false &amp;&amp; selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<!--//-->
<tr>
	<td>click</td>
	<td>css=#login-pass_view &gt; label.content__form__text__bg</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=input-login_pass</td>
	<td>${AdminLoginPassword}</td>
</tr>
<tr>
	<td>click</td>
	<td>css=input.button__button</td>
	<td></td>
</tr>
<!--//-->
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Undefined index')==false &amp;&amp; selenium.isTextPresent('Notice')==false &amp;&amp; selenium.isTextPresent('Error')==false &amp;&amp; selenium.isTextPresent('Exception')==false &amp;&amp; selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<!--//-->
<tr>
	<td>waitForElementPresent</td>
	<td>css=div.all-sale</td>
	<td></td>
</tr>
<!--Идем в админку-->
<tr>
	<td>open</td>
	<td>/call/</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>id=order-id</td>
	<td></td>
</tr>
<!--//-->
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Undefined index')==false &amp;&amp; selenium.isTextPresent('Notice')==false &amp;&amp; selenium.isTextPresent('Error')==false &amp;&amp; selenium.isTextPresent('Exception')==false &amp;&amp; selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<!--//-->
<!--Тело заказа-->
<tr>
	<td>click</td>
	<td>link=${order_id}</td>
	<td></td>
</tr>
<!--//-->
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Undefined index')==false &amp;&amp; selenium.isTextPresent('Notice')==false &amp;&amp; selenium.isTextPresent('Error')==false &amp;&amp; selenium.isTextPresent('Exception')==false &amp;&amp; selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<!--//-->
<tr>
	<td>waitForVisible</td>
	<td>tabs-1</td>
	<td></td>
</tr>
<tr>
	<td>store</td>
	<td>0</td>
	<td>q</td>
</tr>
<tr>
	<td>label</td>
	<td>sravnenie</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>ot_subtotal</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>ot_shipping</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>ot_total</td>
	<td></td>
</tr>
<!---->
<!--Сравнение длинны строки поля доставки.-->
<tr>
	<td>storeText</td>
	<td>//*[@id='tabs-1']/div[1]/div[3]</td>
	<td>delivery_type_string</td>
</tr>
<tr>
	<td>storeEval</td>
	<td>storedVars['delivery_type_string'].length</td>
	<td>delivery_type_string_length</td>
</tr>
<!--ПЕРЕСЧЕТ.-->
<tr>
	<td>store</td>
	<td>0</td>
	<td>recalculation</td>
</tr>
<tr>
	<td>label</td>
	<td>comparison</td>
	<td></td>
</tr>
<tr>
	<td>while</td>
	<td>${recalculation}&lt;${recalculation_counter}</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>${recalculation}+1</td>
	<td>recalculation</td>
</tr>
<tr>
	<td>echo</td>
	<td>${recalculation}</td>
	<td></td>
</tr>
<!---->
<tr>
	<td>label</td>
	<td>delivery</td>
	<td></td>
</tr>
<tr>
	<td>storeText</td>
	<td>ot_shipping</td>
	<td>ot_shipping</td>
</tr>
<!---->
<tr>
	<td>storeText</td>
	<td>ot_total</td>
	<td>price_sum</td>
</tr>
<tr>
	<td>echo</td>
	<td>${price_sum}</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>storedVars['price_sum'].replace(' руб.','')</td>
	<td>ot_total</td>
</tr>
<!---->
<tr>
	<td>storeText</td>
	<td>ot_subtotal</td>
	<td>cost_of_goods</td>
</tr>
<tr>
	<td>echo</td>
	<td>${cost_of_goods}</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>storedVars['cost_of_goods'].replace(' руб.','')</td>
	<td>ot_subtotal</td>
</tr>
<tr>
	<td>echo</td>
	<td>ot_shipping: ${ot_shipping} ot_total: ${ot_total} ot_subtotal: ${ot_subtotal}</td>
	<td></td>
</tr>
<!---->
<tr>
	<td>storeEval</td>
	<td>if (storedVars['basket_sum'] == storedVars['ot_subtotal']) {} else {alert('стоимость товаров не сходится: ${basket_sum} != ${ot_subtotal}')}</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>${basket_sum}, ${ot_subtotal}</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (storedVars['delivery_sum'] == storedVars['ot_shipping']) {} else {alert('доставка не сходится: ${delivery_sum} != ${ot_shipping}; recalculation_counter = ${recalculation_counter}')}</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>${delivery_sum}, ${ot_shipping}</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (storedVars['payable_sum'] == storedVars['ot_total']) {} else {alert('общая стоимость не сходится: ${payable_sum} != ${ot_total}')}</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>${payable_sum}, ${ot_total}</td>
	<td></td>
</tr>
<!--Пересчитываем и сравниваем ещё раз-->
<tr>
	<td>click</td>
	<td>link=Пересчитать заказ</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=#changeStatusForm &gt; button.btn.btn-primary</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>css=#changeStatusForm &gt; button.btn.btn-primary</td>
	<td></td>
</tr>
<!--//-->
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Undefined index')==false &amp;&amp; selenium.isTextPresent('Notice')==false &amp;&amp; selenium.isTextPresent('Error')==false &amp;&amp; selenium.isTextPresent('Exception')==false &amp;&amp; selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<!--//-->
<!--Сравнение строк поля доставки (сравниваются кол-во символов в строках)-->
<tr>
	<td>storeText</td>
	<td>//*[@id='tabs-1']/div[1]/div[3]</td>
	<td>delivery_type_string_after_recalculation</td>
</tr>
<tr>
	<td>storeEval</td>
	<td>storedVars['delivery_type_string_after_recalculation'].length</td>
	<td>delivery_type_string_after_recalculation_length</td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (${delivery_type_string_length}!=${delivery_type_string_after_recalculation_length}){alert('После пересчета не сходится длинна строки поля доставки: ${delivery_type_string_length} (delivery_type_string_length) &quot;${delivery_type_string_after_recalculation}&quot; != ${delivery_type_string_after_recalculation_length} (delivery_type_string_after_recalculation_length) &quot;${delivery_type_string}&quot;')} {}</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>${delivery_type_string}</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>${delivery_type_string_after_recalculation}</td>
	<td></td>
</tr>
<tr>
	<td>gotolabel</td>
	<td>comparison</td>
	<td></td>
</tr>
<tr>
	<td>endWhile</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>id=tabs-1</td>
	<td></td>
</tr>
<tr>
	<td>select</td>
	<td>id=orderStatus</td>
	<td>label=Не подтвержден</td>
</tr>
<tr>
	<td>click</td>
	<td>css=#changeStatusForm &gt; button.btn.btn-primary</td>
	<td></td>
</tr>
<!--//-->
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Undefined index')==false &amp;&amp; selenium.isTextPresent('Notice')==false &amp;&amp; selenium.isTextPresent('Error')==false &amp;&amp; selenium.isTextPresent('Exception')==false &amp;&amp; selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<!--//-->
<tr>
	<td>waitForPageToLoad</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>Статус: Не подтвержден</td>
	<td></td>
</tr>
<tr>
	<td>endWhile</td>
	<td></td>
	<td></td>
</tr>
